Infinite impulse response filters with dithering and methods of operation thereof

ABSTRACT

A method of filtering includes generating a random value by a random number generator circuit, filtering a first signal by a first filter to form a filtered first signal, dithering the filtered first signal using the random value to form a dithered first signal, filtering a second signal by a second filter to form a filtered second signal, and dithering the filtered second signal using the random value to form a dithered second signal.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No.62/768,631 filed on Nov. 16, 2018, which application is herebyincorporated herein by reference in its entirety.

TECHNICAL FIELD

The present invention relates generally to infinite impulse responsefilters, and, in particular embodiments, to infinite impulse responsefilter devices and the methods of operation thereof.

BACKGROUND

Infinite impulse response filters (IIR) filters are widely used forsignal processing. Compared with finite impulse response (FIR) filters,IIR filters usually provide better frequency response at the samecomputational cost. However, IIR filters are more precision-sensitive.Consequently, IIR filters can suffer from inaccuracy problems or, insome cases, divergence if improperly implemented. This risk isparticularly true for IIR filter implemented with fixed-point processorsand with fixed-point hardware IPs.

SUMMARY

In accordance with an embodiment of the invention, a method of filteringincludes generating a random value by a random number generator circuit,filtering a first signal by a first filter to form a filtered firstsignal, dithering the filtered first signal using the random value toform a dithered first signal, filtering a second signal by a secondfilter to form a filtered second signal, and dithering the filteredsecond signal using the random value to form a dithered second signal.

In accordance with another embodiment of the invention, an IIR filterincludes a plurality of lower order filter stages and a random numbergenerator circuit. The plurality of lower order filter stages includes afirst filter stage coupled to a second filter stage. The random numbergenerator circuit includes a first output coupled to the first filterstage and a second output coupled to the second filter stage. The randomnumber generator circuit is configured to generate a random value atboth the first output and the second output. The IIR filter is an n^(th)order filter and a respective order of each of the lower order filterstages is less than n.

In accordance with still another embodiment of the invention, amultichannel IIR filter includes a plurality of channels and a randomnumber generator circuit. The plurality of channels includes a firstchannel and a second channel. The random number generator circuitincludes a first output coupled to a first filter of the first channeland a second output coupled to a second filter of the second channel.The random number generator circuit is configured to generate a randomvalue at both the first output and the second output.

BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention, and theadvantages thereof, reference is now made to the following descriptionstaken in conjunction with the accompanying drawings, in which:

FIG. 1 illustrates an example higher order IIR filter including aplurality of lower order IIR filters and a single random numbergenerator circuit in accordance with an embodiment of the invention;

FIG. 2 illustrates an example higher order IIR filter including aplurality of biquadratic filters in a cascade configuration and a singlerandom number generator circuit in accordance with an embodiment of theinvention;

FIG. 3 illustrates an example higher order IIR filter including aplurality of biquadratic filters in a parallel configuration and asingle random number generator circuit in accordance with an embodimentof the invention;

FIG. 4 illustrates an example system including a higher order IIR filterin accordance with an embodiment of the invention; and

FIG. 5 illustrates a graph of impulse response versus time for variousIIR filters including an IIR filter with dithering.

Corresponding numerals and symbols in the different figures generallyrefer to corresponding parts unless otherwise indicated. The figures aredrawn to clearly illustrate the relevant aspects of the embodiments andare not necessarily drawn to scale. The edges of features drawn in thefigures do not necessarily indicate the termination of the extent of thefeature.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

The making and using of various embodiments are discussed in detailbelow. It should be appreciated, however, that the various embodimentsdescribed herein are applicable in a wide variety of specific contexts.The specific embodiments discussed are merely illustrative of specificways to make and use various embodiments, and should not be construed ina limited scope.

Various techniques may be utilized to improve the accuracy and stabilityof higher order IIR filters. One possible technique is to simply enlargethe bitwidth of registers to guarantee the desired accuracy. Forexample, single-precision registers may be enlarged to becomedouble-precision registers so that accuracy may be improved. Otherpossible techniques may be to utilize topologies such as all-pass nodesand/or biquadratic decomposition that are less accuracy-sensitive.Application-specific optimization may also be applied to filtertopologies.

One specific technique to improve the accuracy and stability of higherorder IIR filter is to apply dither to the output of the higher orderIIR filter before quantizing it. Applying dither (also referred to asdithering) is the intentional application of random noise to a signal.Dithering may be used to randomize quantization error such that thecorrelation between the signal and the quantization error may be reducedand/or eliminated. Dither may be used in a variety of contexts such asdigital audio, digital video, digital photography, seismology, radar andweather forecasting systems. For example, dithering may be utilized indelta-sigma modulators (noise shapers).

Dither may have a variety of advantages when applied to a higher orderIIR filter. For example, dithering may advantageously reduce and/oreliminate the risk of self-oscillation that happens even if the inputsignal is mute (zeros). However, dithering may also introduce additionalcomputational steps due to the generation of random values. Therefore,it may be desirable to implement dithering in a higher order IIR filterwhile minimizing the computational cost in order to improve accuracyand/or stability of the higher order IIR filter while reducingcomputational load.

Embodiments provided below describe various IIR filters with ditheringand various methods of operating IIR filters with dithering, inparticular, IIR filters having a plurality of lower order IIR filtersand a single random number generator circuit. The IIR filters may havevarious advantages over conventional IIR filters. The followingdescription describes the embodiments. Several embodiment IIR filterswith a plurality of lower order IIR filters and a single random numbergenerator circuit are described using FIGS. 1-3. An embodiment systemincluding a higher order IIR filter is described using FIG. 4. A graphof impulse response versus time for various IIR filters is describedusing FIG. 5.

An N-order IIR filter can be represented by the following equation:

$\begin{matrix}{{H(z)} = {\frac{A(z)}{B(z)} = \frac{\sum\limits_{n}^{N}{a_{n}z^{- n}}}{\sum\limits_{n}^{N}{b_{n}z^{- n}}}}} & (1.0)\end{matrix}$

In Eq. 1.0, the transfer function as a function of complex frequencyH(z) is the ratio of the output A(z) to the input B(z). Here, thecoefficients an are the feedforward coefficients, b_(n) are the feedbackcoefficients, and b_(o)=1 in the normalized formula. It may bebeneficial to maintain stability criteria so that the IIR filter worksstably. For example, the stability criteria may be that all poles areinside of the unit circle in the z-plane. In other words, for thiscriterion to be maintained, the denominator polynomial B(z) will haveroots whose absolute values are all less than 1. However, even if an IIRfilter satisfies this rule, there may still be a chance of an inaccuracyissue or even divergence, if it is improperly implemented. This may betrue, for example, when the IIR filter has poles that are close to theunit circle and/or when the system matrix is considered to beill-conditioned.

In various embodiments, the lower order IIR filters may be implementedas biquadratic (biquad) filters. Higher order IIR filters may bedecomposed biquad IIR filters in various configurations such as acascade configuration, or a parallel configuration. For a cascadeconfiguration, multiple biquad filters are connected in series. Thetransfer function of a higher order IIR filter implemented using nbiquad filters in a cascade configuration can be written as

$\begin{matrix}{{H(z)} = {{\prod{H_{n}(z)}} = {\prod\frac{a_{n,0} + {a_{n,1}z^{- 1}} + {a_{n,2}z^{- 2}}}{1 + {b_{n,1}z^{- 1}} + {b_{n,2}z^{- 2}}}}}} & (1.1)\end{matrix}$

Similarly, in a parallel configuration, multiple biquad filters areconnected in parallel. The transfer function of a higher order IIRfilter implemented using n biquad filters in a parallel configurationcan be written as

$\begin{matrix}{{H(z)} = {{\sum{S_{n}(z)}} = {\sum\frac{c_{n,0} + {c_{n,1}z^{- 1}} + {c_{n,2}z^{- 2}}}{1 + {d_{n,1}z^{- 1}} + {d_{n,2}z^{- 2}}}}}} & (1.2)\end{matrix}$

It may be noted that in a specific case where N is odd for an N^(th)order IIR filter implemented using lower order IIR filters such asbiquad filters, the above decomposition shall contain a first-order IIRfilter. However, the above equations may still be viewed as general tothis situation as a first-order IIR filter is a sub-class of biquadfilters where a₂=b₂=0 in Eq. (1.1) or c₂=d₂=0 in Eq. (1.2). Therefore,in any of the following embodiments, a biquad filter may also refer to afirst-order filter.

Decomposing a higher order IIR filter into a plurality of biquad IIRfilters may have a beneficial effect of reducing the sensitivity toprecision of the higher order IIR filter. In order to further reduce thesensitivity to precision, dithering may be used at an output of eachbiquad filter. In particular, dithering may be implemented beforequantization of a filtered signal.

In a specific case of a direct-I implementation of a biquad filter, thebiquad filter output can be calculated as follows:sum=a ₀ x(n)+a ₁ x(n−1)+a ₂ x(n−2)−b ₁ y(n−1)−b ₂ y(n−2)  (1.3)

When all data values (x, y, a, b) are N bit integers, the summationresult sum may have 2N−1 bits or more in its value. In a specificimplementation, accumulators that have 2N bits or more may be used whichare capable of holding such values. Before writing this temporal valueback to memory (or register), the precision of the sum value may need tobe reduced such that it only has N bits (e.g., is in the N bit range).

This can be achieved in several ways which can be written as Eqs.(2)-(4) below.y(n)=saturate[sum»M],  (2)y(n)=saturate[(sum+round)»M], or  (3)y(n)=saturate[(sum+rand(n))»M],  (4)

In Eqs. (2)-(4), M is a scale factor (or so-called Q-format) of thecoefficient (a, b), » is the arithmetic right-shift operation, saturateis a saturation into N bit, round is typically 2^(M-1), and rand(n) is arandom number generator output. For example, the random generator outputmay range from 0 to 2^(M) as a specific example. The sum may beright-shifted by M bits so that y(n) has the same scale factor as y(n−1)and y(n−2). In Eqs. (2)-(4), Eq. (2) represents a truncation tonegative-infinite, Eq. (3) represents rounding to a nearest integer, andEq. (4) represents dithering. Of the three example methods of reducingthe precision of the sum value, only the dithering method usesadditional computational steps due to the inclusion of random numbergeneration.

Since the use of dithering uses additional computational steps, it maybe advantageous to use only one dithering circuit so that the benefitsof dithering may be realized while minimizing the computational load onthe higher order IIR filter. Therefore, in various embodiments, in orderto minimize the additional computational cost due to random numbergeneration, only one random number generator circuit is included in thehigher order IIR filter. An output random number value of the randomnumber generator circuit is fed to the lower orders. This is illustratedin FIGS. 1-3 in the following.

One possible advantage of this configuration is that the additionalcomputational cost of dithering can be reduced to just 1) loading therandom number value RN and 2) adding the random number value RN to theaccumulator before truncating. The random number generation circuititself includes its own computation, but the computational load of asingle random number generation circuit may be relatively small incomparison with the computational load of multiple lower order IIRfilter stages and/or multiple channels.

FIG. 1 illustrates an example higher order IIR filter including aplurality of lower order IIR filters and a single random numbergenerator circuit in accordance with an embodiment of the invention.

Referring to FIG. 1, a higher order IIR filter 100 includes a randomnumber generator circuit 101 including a first output 118 and a secondoutput 120. The random number generator circuit 101 may optionallyinclude additional outputs as shown. The random number generator circuitis configured to generate a single random number value RN at eachoutput.

The higher order IIR filter 100 also includes a plurality of lower orderIIR filters. For example, the higher order IIR filter 100 includes afirst lower order IIR filter 102 and a second lower order IIR filter104. An output of the first lower order IIR filter 102 may be coupled toan input of the second lower order IIR filter 104 in a cascadeconfiguration. For example, the first lower order IIR filter 102receives a first signal 114 at an input and filters the first signal togenerate a first filtered signal. The second lower order IIR filter 104receives and filters the first filtered signal to generate a secondfiltered signal. The higher order IIR filter 100 may also optionallyinclude additional lower order IIR filters 106 coupled to the secondlower order IIR filter 104.

The string of lower order IIR filters including the first lower orderIIR filter 102 and the second IIR filter 104 may be a channel and thehigher order IIR filter 100 may be a multichannel higher order IIRfilter. For example one or more additional signals 116 may be receivedby one or more channels each including optional additional lower orderIIR filters 108, 110, and 112.

The random number value RN is provided at each of the lower order IIRfilters 102, 104, 106, 108, 110, 112 that are included in the higherorder IIR filter 100. The higher order IIR filter wo may advantageouslyuse the random number value RN to apply dither to each lower order IIRfilter stage while minimizing computational load. For example, thehigher order IIR filter wo may have the same computational loadregardless of the number of channels or the number of lower order IIRfilters per channel.

FIG. 2 illustrates an example higher order IIR filter including aplurality of biquadratic filters in a cascade configuration and a singlerandom number generator circuit in accordance with an embodiment of theinvention. The higher order IIR filter of FIG. 2 may be a specificimplementation of other embodiment higher order IIR filters as describedherein, such as the higher order IIR filter 100 of FIG. 1, for example.Similarly labeled elements may be as previously described.

Referring to FIG. 2, a higher order IIR filter 200 includes a randomnumber generator circuit 101 including a plurality of outputs. A randomnumber value RN is generated at each output of the random numbergenerator and provided to each biquad filter included in the higherorder IIR filter 200. For example, higher order IIR filter 200 includesa first biquad filter 202 and a second biquad filter 204. The firstbiquad filter 202 and the second biquad filter 204 are specificimplementations of lower order IIR filters. As shown, higher order IIRfilter 200 includes N channels which each include a plurality of biquadfilters in a cascade configuration. The first biquad filter 202 receivesa first channel signal 214 at an input. The random number value RNgenerated by the random number generator circuit 101 is provided to eachof the biquad filters in each of the channels of the higher order IIRfilter 200.

FIG. 3 illustrates an example higher order IIR filter including aplurality of biquadratic filters in a parallel configuration and asingle random number generator circuit in accordance with an embodimentof the invention. The higher order IIR filter of FIG. 3 may be aspecific implementation of other embodiment higher order IIR filters asdescribed herein, such as the higher order IIR filter 100 of FIG. 1, forexample. Similarly labeled elements may be as previously described.

Referring to FIG. 3, a higher order IIR filter 300 includes a randomnumber generator circuit 101, a first biquad filter 202 that receives afirst channel signal 214, and a second biquad filter 204 that alsoreceives the first channel signal 214. As with previous embodiments, therandom number value RN generated by the random number generator circuit101 is provided to all biquad filters of the higher order IIR filter300. In contrast to the higher order IIR filter 200 of FIG. 2, eachchannel of the higher order IIR filter 300 includes a plurality ofbiquad filters in a parallel configuration.

The higher order IIR filter implementations described herein may beparticularly useful when fixed point processing is used in the higherorder IIR filter system. Advantageously, for fixed point systems,dithering may be relatively simple to implement. When the number ofrandom number generator circuits is limited to one per higher order IIRfilter, additional advantages may be achieved such as increasedsimplicity and decreased computational requirements of the system. Thismay be especially true for systems that apply IIR filtering tomultichannel signal paths and/or multiple lower order filtering (e.g.,biquad filtering) stages to form a higher order IIR filters.

For the specific case in which a higher order IIR filter includesmultiple cascaded biquad stages, each may represent a parametricequalizer of an audio signal. The random number value RN of the randomnumber generator circuit may be added to each biquad stage output beforebeing truncated to the system-specific bit-width for fixed pointsystems.

The means of random number generation can be realized by any suitabletype: linear feedback shift registers, linear congruential for uniformprobability distribution function (PDF), or a mix of such to formtriangle PDF, etc. Each biquad section may be implemented with differentprecision, i.e., having different bit-widths in the coefficients and ordata, so that the computation and accuracy can be best balanced for agiven practical implementation.

FIG. 4 illustrates an example system including a higher order IIR filterin accordance with an embodiment of the invention.

Referring to FIG. 4, a system 400 includes a signal source at an inputof a signal processing block. The input of the signal processing blockmay have multiple channels and receive multiple signals. Afterprocessing the received signal(s), a filtered output is generated at anoutput of the filter block. The signal source may be digital or analog.For example, the signal source may be an audio source or a video source.The signal may have any suitable format such as I2S, USB, A2DP, and thelike.

The signal processing block may include various processors forprocessing the received signal(s). For example, a processor included inthe signal processing block may be implemented as a system on a chip(SoC), digital signal processor (DSP), microcontroller, and others. Afilter block may also be included which includes a higher order IIRfilter implemented using a plurality of lower order IIR filters and asingle random number generator circuit. For example, in an audio system,the filter block may modify received audio signals to produce soundeffects. The system 400 may advantageously provide stable and accuratesignal filtering with minimal additional computation cost compared toconventional systems.

FIG. 5 illustrates a graph of impulse response versus time for variousIIR filters including an IIR filter with dithering. As shown, theimpulse response is plotted as a function of time for three IIR filters.Specifically, the IIR filters are Butterworth low-pass filters (LPF),each implementing a different method of reducing precision of the sumvalue. However, only the IIR filter that uses dithering returns to 0after a signal pulse is input.

Example embodiments of the invention are summarized here. Otherembodiments can also be understood from the entirety of thespecification as well as the claims filed herein.

Example 1

A method of filtering including: generating a random value by a randomnumber generator circuit; filtering a first signal by a first filter toform a filtered first signal; dithering the filtered first signal usingthe random value to form a dithered first signal; filtering a secondsignal by a second filter to form a filtered second signal; anddithering the filtered second signal using the random value to form adithered second signal.

Example 2

The method according to example 1, where the second signal is thedithered first signal.

Example 3

The method according to one of examples 1 and 2, where generating therandom value includes: simultaneously generating the random value by therandom number generator circuit at a first output of the random numbergenerator circuit and a second output of the random number generatorcircuit, the first output being coupled to the first filter and thesecond output being coupled to the second filter.

Example 4

The method according to one of examples 1 to 3, where the first signaland the second signal are digital signals.

Example 5

The method according to one of examples 1 to 3, where the first signaland second signal are analog signals.

Example 6

The method according to one of examples 1 to 5, where the first signaland the second signal are audio signals.

Example 7

The method according to one of examples 1 to 5, where the first signaland the second signal are video signals.

Example 8

An infinite impulse response (IIR) filter including: a plurality oflower order filter stages including a first filter stage coupled to asecond filter stage; and a random number generator circuit including afirst output coupled to the first filter stage and a second outputcoupled to the second filter stage, the random number generator circuitconfigured to generate a random value at both the first output and thesecond output, where the IIR filter is an n^(th) order filter, and wherea respective order of each of the lower order filter stages is less thann.

Example 9

The IIR filter according to example 8, where each of the plurality oflower order filter stages includes a biquadratic filter.

Example 10

The IIR filter according to one of examples 8 and 9, where the pluralityof lower order filter stages includes a plurality of filters connectedin a cascade configuration.

Example 11

The IIR filter according to one of examples 8 to 10, where the pluralityof lower order filter stages includes a plurality of filters connectedin a parallel configuration.

Example 12

The IIR filter according to one of examples 8 to 11, where the IIRfilter is a fixed point IIR filter.

Example 13

The IIR filter according to one of examples 8 to 12, where the pluralityof lower order filter stages includes a plurality of parametricequalizers.

Example 14

A multichannel infinite impulse response (IIR) filter including: aplurality of channels including a first channel and a second channel;and a random number generator circuit including a first output coupledto a first filter of the first channel and a second output coupled to asecond filter of the second channel, the random number generator circuitconfigured to generate a random value at both the first output and thesecond output.

Example 15

The multichannel IIR filter according to example 14, where each of theplurality of channels includes a plurality of lower order filter stagesthat altogether reconstruct the multichannel IIR filter.

Example 16

The multichannel IIR filter according to one of examples 14 and 15,where each of the plurality of channels includes a string of biquadraticfilters.

Example 17

The multichannel IIR filter according to one of examples 14 to 16, whereeach of the plurality of channels includes a plurality of filtersconnected in a cascade configuration.

Example 18

The multichannel IIR filter according to one of examples 14 to 16, whereeach of the plurality of channels includes a plurality of filtersconnected in a parallel configuration.

Example 19

The multichannel IIR filter according to one of examples 14 to 18, wherethe multichannel IIR filter is a fixed point multichannel IIR filter.

Example 20

The multichannel IIR filter according to one of examples 14 to 19, whereeach of the plurality of channels is a parametric equalizer.

While this invention has been described with reference to illustrativeembodiments, this description is not intended to be construed in alimiting sense. Various modifications and combinations of theillustrative embodiments, as well as other embodiments of the invention,will be apparent to persons skilled in the art upon reference to thedescription. It is therefore intended that the appended claims encompassany such modifications or embodiments,

What is claimed is:
 1. A method of filtering comprising: generating arandom value by a random number generator circuit; filtering a firstsignal by a first filter to form a filtered first signal; dithering thefiltered first signal using the random value to form a dithered firstsignal; filtering a second signal by a second filter to form a filteredsecond signal; and dithering the filtered second signal using the samerandom value to form a dithered second signal.
 2. The method accordingto claim 1, wherein the second signal is the dithered first signal. 3.The method according to claim 1, wherein generating the random valuecomprises: simultaneously generating the random value by the randomnumber generator circuit at a first output of the random numbergenerator circuit and a second output of the random number generatorcircuit, the first output being coupled to the first filter and thesecond output being coupled to the second filter.
 4. The methodaccording to claim 1, wherein the first signal and the second signal aredigital signals.
 5. The method according to claim 1, wherein the firstsignal and the second signal are analog signals.
 6. The method accordingto claim 1, wherein the first signal and the second signal are audiosignals.
 7. The method according to claim 1, wherein the first signaland the second signal are video signals.
 8. A multichannel infiniteimpulse response (IIR) filter comprising: a plurality of channelscomprising a first channel and a second channel; and a random numbergenerator circuit comprising a first output coupled to a first filter ofthe first channel and a second output coupled to a second filter of thesecond channel, the random number generator circuit configured togenerate a same random value at both the first output and the secondoutput.
 9. The multichannel IIR filter according to claim 8, whereineach of the plurality of channels comprises a plurality of lower orderfilter stages that altogether reconstruct the multichannel IIR filter.10. The multichannel IIR filter according to claim 8, wherein each ofthe plurality of channels comprises a string of biquadratic filters. 11.The multichannel IIR filter according to claim 8, wherein each of theplurality of channels comprises a plurality of filters connected in acascade configuration.
 12. The multichannel IIR filter according toclaim 8, wherein each of the plurality of channels comprises a pluralityof filters connected in a parallel configuration.
 13. The multichannelIIR filter according to claim 8, wherein the multichannel IIR filter isa fixed point multichannel IIR filter.
 14. The multichannel IIR filteraccording to claim 8, wherein each of the plurality of channels is aparametric equalizer.
 15. A method of multistage filtering comprising:generating a random value by a random number generator circuit;filtering a first signal using a first filter stage to form a filteredfirst signal; dithering the filtered first signal using the random valueto form a dithered first signal; filtering the dithered first signalusing a second filter stage to form a filtered second signal; anddithering the filtered second signal using the same random value to forma dithered second signal.
 16. The method of claim 15, wherein generatingthe random value comprises: simultaneously generating the random valueby the random number generator circuit at a first output of the randomnumber generator circuit and a second output of the random numbergenerator circuit, the first output being coupled to the first filterstage and the second output being coupled to the second filter stage.17. The method of claim 15, wherein the first signal is a digitalsignal.
 18. The method of claim 15, wherein the first signal is ananalog signal.
 19. The method of claim 15, wherein the first signal isan audio signal.
 20. The method of claim 15, wherein the first signal isa video signal.